package org.rscdaemon.server.util;

import java.io.*;
import java.util.zip.GZIPInputStream;

public class ObjectLoader {
	public static Object loadObject(String file) {
		try {
			ObjectInputStream in = new ObjectInputStream(new GZIPInputStream(new FileInputStream(new File(Config.CONF_DIR, "data/ground.gz"))));
			Object temp = in.readObject();
			in.close();
			return temp;
		}
		catch(Exception e) {
			Logger.error(e);
			return null;
		}
	}
}